﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Test_LYK.Domain;

namespace Test_LYK.Controllers
{
    public class PersonController : Controller
    {
        // GET: Person
        public ActionResult GetPerson()
        {
            var personList = new PersonDomain().GetPersonList();

            ViewBag.PersonList = personList;

            return View();
        }

        public bool ModifyPerson(int id,string name)
        {
            var res = new PersonDomain().ModifyPerson(id, name);
            return res;
        }
    }
}